﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Input;
using be.metanous.mvvm.core;

namespace WPFChat.ViewModel
{
    public class CommandViewModel:ViewModelBase 
    {
        public object Parameter { get; set; }
        public ICommand Command { get; set; }
        public IInputElement CommandTarget { get; set; }

        public CommandViewModel(ICommand command)
        {
            Command = command;
        }

        private string _description;

        public string Description
        {
            get { return _description; }
            set
            {
                if (_description != value)
                {
                    _description = value;
                    RaisePropertyChanged(() => Description);
                }
            }
        }

            
    }
}
